<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>loading animations</title>
    <link rel="stylesheet" th:href="@{/css/loading-animations.css}" type="text/css">
</head>
<body>

<div style="width:666px; margin: auto;">
    <button id="ajax">ajsx加载动画</button>
</div>

<script type="text/javascript" th:src="@{/js/jquery-3.2.1.js}"></script>
<script type="text/javascript" th:src="@{/js/loading-animations.js}"></script>
<script type="text/javascript">
    $(function () {
        $("#ajax").click(function () {
            showLoading('show');
            setTimeout(function () {
                showLoading('reset');
                // console.info(1);
            }, 1000 * 60);
        });
    });

</script>
</body>
</html>